<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    
    <title>修改航班安排</title>
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.3.1.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/jquery.validate.js"></script>
	<script type="text/javascript" charset="UTF-8" src="<%=basePath%>js/messages_cn.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/calendar/calendar.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/calendar/calendar-setup.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/calendar/lang/calendar-zh_CN.js"></script>
	<link rel="stylesheet"  href="<%=basePath%>js/calendar/skins/aqua/theme.css"/>
	<script type="text/javascript">
		$(function() {
			$("#updateFlightArrangeForm").validate({
				rules:{
					"flightArrange.startDate":{
						required:true
					},
					"flightArrange.ticketsNum":{
						required:true
					}
				}
			}) ;
		}) ;
	</script>

  </head>
  
  <body  bgcolor="#D6DFF7">
    <table width="100%" border="0" align="center" cellpadding="1"
			cellspacing="0" class="TABLELIST">
			<tr>
				<td align="center"></td>
			</tr>
			<tr   bgcolor="#DEE5FA" >
				<td align="center">
				  	<form action="ArrangeInfo!updateFlightArrangeInfo" method="post" id="updateFlightArrangeForm">
				  			<table width="100%" border="0" cellpadding="1" cellspacing="0"
							class="TABLELIST">
							<tr bgcolor="#799AE1" height="50" >
								<td colspan="2" align="center" style="font-size: 16px">
									<font color="#874B46" size="4pt">修改航班安排</font>
								</td>
								</tr>
								
							<tr>
								<td height="50" width="42%" align="right">
									航班编号：&nbsp;&nbsp;&nbsp;
								</td>
								<td width="58%" align="left">
									<input name="flight.flight_name" id="flight.flight_name" type="text"
										size="20" readonly="readonly" style="width:200px; height:26px;"  value="<s:property value="flightArrange.flight.flight_name"/>" />
								</td>
							</tr>
							<tr>
								<td height="50" width="42%" align="right">
									起飞时间：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="flightArrange.startDate" id="flightarrange.startDate" type="text"
										size="20" style="width:200px; height:26px;" value="<s:property value="flightArrange.startDate"/>"/>
								</td>
							</tr>
							<tr>
								<td height="50" width="42%" align="right">
									出售票数：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="flightArrange.ticketsNum" id="ticketsNum" type="text"
										size="20" style="width:200px; height:26px;" value="<s:property value="flightArrange.ticketsNum"/>"/>
								</td>
							</tr>
							
							<tr>
								<td width="42%" align="left">
									
								</td>
								<td align="left">
							        <input type="submit" name="update" id="update" style="width: 60" value="更新" />
								    <input type="reset" name="reset" id="reset" style="width: 60" value="重置" />
								</td>
							</tr>
							
							</table>
				  	</form>
				  </td>
				</tr>
				<tr>
				<td align="center"></td>
			    </tr>
			
	</table>
  </body>
   <script type="text/javascript">
	Calendar.setup( {
		inputField : "flightarrange.startDate",
		ifFormat : "%Y-%m-%d %H:%M",
		showsTime : "true",
		button : "flightarrange.startDate",
		step : 1
	});
</script>
</html>
